package cn.csxw.openchina.dagger2.module;

import cn.csxw.openchina.dagger2.presenter.MoveCommentPresenter;
import cn.csxw.openchina.ui.fragment.CommentFragment.MoveCommentFragment;
import dagger.Module;
import dagger.Provides;

/**
 * 动弹模块的新的动弹界面的Module类
 */

@Module
public class MoveCommentModule {
    private MoveCommentFragment mMoveCommentFragment;

    public MoveCommentModule(MoveCommentFragment mMoveCommentFragment){
        this.mMoveCommentFragment = mMoveCommentFragment;
    }

    @Provides
    public MoveCommentPresenter providesMoveCommentPresenter(){
        return new MoveCommentPresenter(mMoveCommentFragment);
    }

    @Provides
    public MoveCommentFragment providesMoveCommentFragment(){
        return mMoveCommentFragment;
    }

}
